var app = angular.module('fiveApp');
app.controller('indexCtr', ['$rootScope', '$scope', 'ajaxService', function ($rootScope, $scope, ajax) {


    $scope.data = {
        article:[]
    };
    $scope.$on('$stateChangeSuccess', function () {
        ajax('indexArticle',{},function (res){
            if(!res.errCode){
                $scope.data.article = res.data
            }
        },false,false)
    })


}
])